import sppt, listener, sys, os, time

sppt.write("Loading resources...")
try:
	folders = ["protocols"]
	for folder in folders:
		sppt.write("Loading %s..." % folder)
		sys.path.insert(0, os.path.abspath("./" + folder + "/"))
except:
	sppt.write( "Python will not allow a folder to be added as an import location." )
	sys.exit()
sppt.write("Loading resources complete.")

bnet = listener.listener(6112, "bnet.py")
while bnet.listen:
	time.sleep(0.04)
bnftp = listener.listener(6112, "bnftp.py")
while bnftp.listen:
	time.sleep(0.04)